// 03myCenter/02sectorization/02myOrder/orderDetails/orderDetails.js
var co = require('../../../../resource/js/common.js')
var app = getApp()
var _this

Page({

    /* 页面的初始数据*/
    data: {
        //订单详细信息   
        orderDetails: [],
        Order_CartList: []
    },

    /* 生命周期函数--监听页面加载*/
    onLoad: function (options) {
        _this = this
        var obj = JSON.parse(options.obj)
        var o = this.data.Order_CartList
        for (var key in obj.Order_CartList){
            o.push(obj.Order_CartList[key])
        }
        this.setData({
            orderDetails: obj,
            Order_CartList: o
        })
        // console.log("【获取页面传递的obj】===", obj)
    },
    //联系商家
    calling: function(){
        wx.makePhoneCall({
            phoneNumber: this.data.orderDetails.Biz_Phone,
        })
    }
})